package com.jiexin.datasource;


import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


/**
 * @Author: Jay_Liu
 * @Description:  CAT 数据库连接池参数类
 * @Date: Created in 21:19 2018/7/19
 * @Modified By:
 */
@Component
@ConfigurationProperties(prefix = "spring.datasource.cat")
@Getter
@Setter
public class CATConfig {


    private String url;
    private String username;
    private String password;
    private int initialSize;
    private int minIdle;
    private int maxActive;
    private int maxWait;
    private int timeBetweenEvictionRunsMillis;
    private int minEvictableIdleTimeMillis;
    private String validationQuery;
    private boolean testWhileIdle;
    private boolean testOnBorrow;
    private boolean testOnReturn;
    private boolean poolPreparedStatements;
    private int maxPoolPreparedStatementPerConnectionSize;
    private String filters;
    private String connectionProperties;
    private int minPoolSize;
    private int poolSize;
    private int maxPoolSize;
    private int borrowConnectionTimeout;
    private int reapTimeout;
    private int maxIdleTime;
    private int maintenanceInterval;
    private boolean isRemoveAbandoned;
    private int removeAbandonedTimeout;
}
